Spread WPF 17
GrapeCity.CalcEngine.Functions Namespace / CalcMidFunction Class / Evaluate Method / Evaluate(Object[]) Method

The args contains 3 items: text, start_num, num_chars.

Text is the text string containing the characters you want to extract.

Start_num is the position of the first character you want to extract in text. The first character in text has start_num 1, and so on.

Num_chars specifies the number of characters you want MID to return from text.



In This Topic
    Evaluate(Object[]) Method
    In This Topic
    Returns a specific number of characters from a text string, starting at the position you specify, based on the number of characters you specify.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function Evaluate( _
       ByVal args() As Object _
    ) As Object
    'Usage
     
    Dim instance As CalcMidFunction
    Dim args() As Object
    Dim value As Object
     
    value = instance.Evaluate(args)
    public override object Evaluate( 
       object[] args
    )

    Parameters

    args

    The args contains 3 items: text, start_num, num_chars.

    Text is the text string containing the characters you want to extract.

    Start_num is the position of the first character you want to extract in text. The first character in text has start_num 1, and so on.

    Num_chars specifies the number of characters you want MID to return from text.

    Return Value

    A System.String value that indicates the evaluate result.
    See Also